package cn.iocoder.yudao.module.fengdong.smartelderly.controller.admin.oldman.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 老人管理 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class OldmanBaseVO {

    @Schema(description = "姓名", example = "赵六")
    @Length(min = 2, max = 4, message = "真实姓名长度限制为 2-4 位")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{2,4}$", message = "真实姓名必须是汉字")
    private String name;

    @Schema(description = "身份证")
    private String identityCard;

    @Schema(description = "手机号")
    private String phoneNumber;

    @Schema(description = "年龄")
    @Min(value = 1, message = "年龄不能小于0")
    private Integer age;

    @Schema(description = "监护人姓名")
    @Length(min = 2, max = 4, message = "监护人真实姓名长度限制为 2-4 位")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{2,4}$", message = "真实姓名必须是汉字")
    private String guardianName;

    @Schema(description = "监护人身份证")
    private String guardianCard;

    @Schema(description = "监护人手机号")
    private String guardianNumber;

    @Schema(description = "备注")
    private String mark;

    @Schema(description = "房间号", example = "12418")
    private Integer roomId;

    @Schema(description = "二维码", example = "https://www.xxx.cn")
    private String qrUrl;

    @Schema(description = "性别")
    private Integer sex;

    @Schema(description = "状态 ", example = "1")
    private Integer type;

    @Schema(description = "楼层/和间号(格式：楼层/房间号)")
    private String floorRoom;

    @Schema(description = "积分")
    private Integer point;

    @Schema(description = "其他信息")
    private String others;

}
